import axios from './axios'
import { cleanObj } from '@/assets/js/tool'

// 驾驶员评价
export function selectPage (data) {
  return axios.get('/api-taxi/judgmentsummary/driver', { ...cleanObj(data) })
}

// 企业评价
export function selectTaxiPage (data) {
  return axios.get('/api-taxi/judgmentsummary/taxiCompany', { ...cleanObj(data) })
}

// 企业评价接口整合
// type: 出租车[taxi_company] 维修企业[repair_enterprise]
export function dept (data) {
  return axios.get('/api-taxi/judgmentsummary/dept', { ...cleanObj(data) })
}

// 详情
export function select (data) {
  return axios.get('/api-taxi/judgmentsummary/select/' + data.id)
}

// 评价历史
export function selectHistory (data) {
  return axios.get('/api-taxi/judgmenthistory/selectPage', data)
}
